jQuery(document).ready( function(){
	jQuery("#registerfrm").validate({
		rules: {
			firstname : "required" ,
			telephone :"required" ,
			email1: {
					 required: true,
					 email: true
					},
			password1: {
					 required: true,
					 minlength: 6
					},
			line_1 : "required" ,
			city : "required" ,
			postcode : "required" ,
			terms : "required" 
		},
		messages: {
			firstname : "Name was not entered" ,
			telephone :"Telephone number not entered" ,
			email1: {
					    required: "Email not entered",
					    email: "Email not valid"
					},
			password1: {
					    required: "Password required",
					    minlength: "Password should be of minimum 6 characters"
					},
			line_1 : "Address is required" ,
			city : "City is required" ,
			postcode : "Postcode is required" ,
			terms : "Please check terms and consition" 
		}
	});
});
